// Place your name class time and date here #include using std::cin; using std::cout; using std::endl; using std::ios_base; //namespace comp170 //{ // struct MyDataType // { // static int x; // }; // int MyDataType::x = 8; //} // void Sort(double A[], int length) { for(int i =0; i < length; i++) { A[i] = 5; } } void main() { const int GRADE_COUNT = 10; //arrays have contiguous memory allocation double grades[GRADE_COUNT]; //0-99 for(int i =0; i < GRADE_COUNT; i++) { cin >> grades[i]; } //sort them Sort(grades,GRADE_COUNT); for(int i =0; i < GRADE_COUNT; i++) { cout << grades[i] << endl; } } ////namespace - area where names are known ////scope - area where names are known // //namespace comp170 //{ // int x = 9; // // void fun() // { // cout << "fun in comp170" << endl; // } // namespace Steil // { // int y = 8; // } //} // //int x = 5; // //void fun() //{ // cout << "fun in the global namespace" << endl; //} // ////using namespace comp170; // //void main() //{ // //int x = 0; // //cout << x << endl; // x++; // //unary scope resolution operator // cout << ::x << endl; // ::fun(); // //binary :: the scope resolution operator // cout << comp170::x << endl; // comp170::fun(); // // cout << comp170::Steil::y << endl; // //}